<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>Requests and Responses</title>
    <link rel="stylesheet" type="text/css" href="fitweb.css"/>
    <script type="text/javascript" src="support.js"></script>
    <script type="text/javascript" src="editor.js"></script>
</head>
<body>
<h1 class="title" onclick="toggle();">Requests and Responses</h1>
<table class="pageFixture">
    <tr>
        <td>org.fitweb.fixture.WebFixture</td>
    </tr>
</table>
<h3>HTTP Request Headers</h3>
<table>
    <tr>
        <td>start server</td>
        <td class="value">org.fitweb.examples.ExampleWebServerProvider</td>
        <td>on port</td>
        <td class="value">8008</td>
    </tr>
</table>
<table class="setup">
    <tr>
        <td colspan="2">set request headers</td>
    </tr>
    <tr class="setup">
        <td class="name">name</td>
        <td class="name">value</td>
    </tr>
    <tr>
        <td>User-agent</td>
        <td>Nasty little IE browser</td>
    </tr>
    <tr>
        <td>Accept-encoding</td>
        <td>gzip,deflate</td>
    </tr>
</table>
<table>
    <tr>
        <td>browse</td>
        <td class="value">http://localhost:8008/some/resource/path</td>
    </tr>
</table>
<h4>Our example webserver echoes the headers back to us:</h4>
<table>
    <tr>
        <td>assert</td>
        <td class="name">Page</td>
        <td>contains</td>
        <td class="value">User-agent: [Nasty little IE browser]</td>
    </tr>
    <tr>
        <td>assert</td>
        <td class="name">Page</td>
        <td>contains</td>
        <td class="value">Accept-encoding: [gzip,deflate]</td>
    </tr>
</table>
<table style="margin-top: 20px">
    <tr>
        <td class="name" colspan="2">summary</td>
    </tr>
</table>
</body>
</html>